import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/product',
      name:'租赁详情',
      component: () =>
      import ('@/views/lease-detail/index.vue')
    },
    {
      path:'/activity',
      name:'学习详情',
      component: () =>
      import ('@/views/study-detail/index.vue')
    },
    {
      path:'/event',
      name:'帮助详情',
      component: () =>
      import ('@/views/help-detail/index.vue')
    },
    {
      path:'/article',
      name:'圈子－动态详情',
      component: () =>
      import ('@/views/article-detail/index.vue')
    },
    {
      path:'/agreement',
      name:'用户协议',
      component: () =>
      import ('@/views/user-agreement/index.vue')
    }
  ]
})

